package com.timmy.chi.model.beans;

import java.util.List;

/**
 * Created by Timmy on 2017/5/1.
 */

public class Foods {

    /**
     * order : {"order":
     *              {"id":26,"time":1493647346218,"uid":3},
     *              "foodStates":[{"id":27,"food":{"id":22,"name":"菠菜面筋","price":19.9,"material":"菠菜,面筋","image":"https://imgsa.baidu.com/baike/c0%3Dbaike92%2C5%2C5%2C92%2C30/sign=54e73b32b619ebc4d4757ecbe34fa499/c75c10385343fbf29fc7a274b57eca8064388ff9.jpg","sid":1},"sid":1,"count":1},{"id":28,"food":{"id":23,"name":"酸辣蕨根粉","price":19.9,"material":"蕨根粉,花生","image":"http://recipe0.hoto.cn/pic/recipe/l/12/81/229650_9ea2c3.jpg","sid":1},"sid":1,"count":1}]}
     * responseState : 0
     * msg : 查询成功
     */

    private Order order;
    private int responseState;
    private String msg;

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public int getResponseState() {
        return responseState;
    }

    public void setResponseState(int responseState) {
        this.responseState = responseState;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class Order {
        /**
         * order : {"id":26,"time":1493647346218,"uid":3}
         * foodStates : [{"id":27,"food":{"id":22,"name":"菠菜面筋","price":19.9,"material":"菠菜,面筋","image":"https://imgsa.baidu.com/baike/c0%3Dbaike92%2C5%2C5%2C92%2C30/sign=54e73b32b619ebc4d4757ecbe34fa499/c75c10385343fbf29fc7a274b57eca8064388ff9.jpg","sid":1},"sid":1,"count":1},{"id":28,"food":{"id":23,"name":"酸辣蕨根粉","price":19.9,"material":"蕨根粉,花生","image":"http://recipe0.hoto.cn/pic/recipe/l/12/81/229650_9ea2c3.jpg","sid":1},"sid":1,"count":1}]
         */

        private OrderBean order;
        private List<FoodStatesBean> foodStates;

        public OrderBean getOrder() {
            return order;
        }

        public void setOrder(OrderBean order) {
            this.order = order;
        }

        public List<FoodStatesBean> getFoodStates() {
            return foodStates;
        }

        public void setFoodStates(List<FoodStatesBean> foodStates) {
            this.foodStates = foodStates;
        }

        public static class OrderBean {
            /**
             * id : 26
             * time : 1493647346218
             * uid : 3
             */

            private int id;
            private long time;
            private int uid;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public long getTime() {
                return time;
            }

            public void setTime(long time) {
                this.time = time;
            }

            public int getUid() {
                return uid;
            }

            public void setUid(int uid) {
                this.uid = uid;
            }
        }

        public static class FoodStatesBean {
            /**
             * id : 27
             * food : {"id":22,"name":"菠菜面筋","price":19.9,"material":"菠菜,面筋","image":"https://imgsa.baidu.com/baike/c0%3Dbaike92%2C5%2C5%2C92%2C30/sign=54e73b32b619ebc4d4757ecbe34fa499/c75c10385343fbf29fc7a274b57eca8064388ff9.jpg","sid":1}
             * sid : 1
             * count : 1
             */

            private int id;
            private FoodBean food;
            private int sid;
            private int count;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public FoodBean getFood() {
                return food;
            }

            public void setFood(FoodBean food) {
                this.food = food;
            }

            public int getSid() {
                return sid;
            }

            public void setSid(int sid) {
                this.sid = sid;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public static class FoodBean {
                /**
                 * id : 22
                 * name : 菠菜面筋
                 * price : 19.9
                 * material : 菠菜,面筋
                 * image : https://imgsa.baidu.com/baike/c0%3Dbaike92%2C5%2C5%2C92%2C30/sign=54e73b32b619ebc4d4757ecbe34fa499/c75c10385343fbf29fc7a274b57eca8064388ff9.jpg
                 * sid : 1
                 */

                private int id;
                private String name;
                private double price;
                private String material;
                private String image;
                private int sid;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public double getPrice() {
                    return price;
                }

                public void setPrice(double price) {
                    this.price = price;
                }

                public String getMaterial() {
                    return material;
                }

                public void setMaterial(String material) {
                    this.material = material;
                }

                public String getImage() {
                    return image;
                }

                public void setImage(String image) {
                    this.image = image;
                }

                public int getSid() {
                    return sid;
                }

                public void setSid(int sid) {
                    this.sid = sid;
                }
            }
        }
    }
}